package com.cssy.xxkj.attach.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.cssy.xxkj.attach.entity.AttachFileUploadDO;

public interface IAttachFileUploadService {

	public void save(HttpServletRequest request,MultipartFile imgFile,String projectId,String projectType,String fileCategory);
	
	public Map saveTemp(HttpServletRequest request,MultipartFile imgFile,String projectId,String projectType,String fileCategory);
	
	public AttachFileUploadDO findByPrimaryKey(String id);
	
	public List<AttachFileUploadDO> findFileUploadByIds(List<String> attachIds);
	
	public List<AttachFileUploadDO> findFileUpDOsByProjectId(String projectId);
	
	public List<AttachFileUploadDO> findAttachFileUploadDOs(Map<String,String> paramMap);
	
	public int deleteFileUploadDO(String id);
	
	public void update(AttachFileUploadDO attachFileUploadDO);
	
	public void updateFileRelated(String idStr,String projectId,String projectType,String fileCategory);
}
